import request from "@/libs/request";

export function login(data) {
  return request({
    url: "/student/login",
    method: "post",
    data,
  });
}

export function logout(data) {
  return request({
    url: "/student/loginOut",
    method: "post",
    data,
  });
}

export function getUserInfo(id) {
  return request({
    url: `/student/selectWebUserById/${id}`,
    method: "post",
  });
}
